home *** CD-ROM | disk | FTP | other *** search
/ Agent Central Host Computer / Agent - Central Host Computer.iso / _SETUP.1 / vrpt12headers.sql < prev    next >
Text File  |  2000-05-12  |  1KB  |  32 lines

  1. CREATE OR REPLACE VIEW VRPT12HEADERS AS 
  2. SELECT 
  3. RPTNAMES.short_name,  
  4.  r1.header h1,  r2.header h2,   r3.header h3,  r4.header h4, 
  5.  r5.header h5,   r6.header h6,   r7.header h7,   r8.header h8,  
  6.  r9.header h9,   r10.header h10,   r11.header h11,  r12.header h12  
  7. FROM  RPTNAMES, 
  8. RPTHEADERS r1, RPTHEADERS r2, RPTHEADERS r3, RPTHEADERS r4,  
  9. RPTHEADERS r5, RPTHEADERS r6, RPTHEADERS r7, RPTHEADERS r8,  
  10. RPTHEADERS r9, RPTHEADERS r10, RPTHEADERS r11, RPTHEADERS r12  
  11. WHERE  
  12. RPTNAMES.max_columns = 12 AND
  13. r1.rptclass = 1 AND r2.rptclass = 2 AND  
  14. r3.rptclass = 3 AND r4.rptclass = 4 AND  
  15. r5.rptclass = 5 AND r6.rptclass = 6 AND  
  16. r7.rptclass = 7 AND r8.rptclass = 8 AND  
  17. r9.rptclass = 9 AND r10.rptclass = 10 AND  
  18. r11.rptclass = 11 AND r12.rptclass = 12 AND
  19. r1.report_indx = RPTNAMES.report_indx AND 
  20. r2.report_indx = RPTNAMES.report_indx AND
  21. r3.report_indx = RPTNAMES.report_indx AND
  22. r4.report_indx = RPTNAMES.report_indx AND
  23. r5.report_indx = RPTNAMES.report_indx AND
  24. r6.report_indx = RPTNAMES.report_indx AND
  25. r7.report_indx = RPTNAMES.report_indx AND
  26. r8.report_indx = RPTNAMES.report_indx AND
  27. r9.report_indx = RPTNAMES.report_indx AND
  28. r10.report_indx = RPTNAMES.report_indx AND
  29. r11.report_indx = RPTNAMES.report_indx AND
  30. r12.report_indx = RPTNAMES.report_indx 
  31. ;
  32.